

import Vue from 'vue';
import Vuex from 'vuex';


import * as getters from './getters';
import * as actions from './actions';
import mutations from './mutations';


Vue.use(Vuex);

const state = {
    winHeight:0,
    routerHome:'home',
    titleInfo:{
        title:'1',
        des:'2'
    },
    yunname:'快保云',
    user:{
        id: '',
        name: '',
        avator: '',
        yun_name:'',        
    },
    currentPageName: '',
    app:{
        cachePage: [],        
    },
    pageOpenedList: [{
        path:'index',
        name:'home',
        meta:{
            title:'首页',
            keepAlive:false
        },
    }],
    cachePage:[],
    tagsList: [],
    dontCache: ['text-editor', 'artical-publish'], // 在这里定义你不想要缓存的页面的name属性值(参见路由配置router.js)
    operation:{}, //控制模块显示
    toggle:{}, 
    actions:{},
    sildeshow:true,
    solid:"you",
    socket:{
        compute_premium:0,   //计算价值保费
        synch_data:0,        //同步员工数据

    },
    carinfo:{
        provinceCode:'',
        responseNo:'',
        cityCode:''
    },
    cartype:[],
    carQuote:{
        
    }
};

export default new Vuex.Store({
    state,
    mutations,
    getters,
    actions
});
